package com.erpanderp.pr.model.entity

import com.erpanderp.pr.util.Constants

class Role {
	static hasMany=[userRoles:UserRole]
	String authority=Constants.ROLE_USER	

 String toString(){
		"${authority}" 
	}
	
    static constraints = {
    	authority(inList:[Constants.ROLE_ADMIN, Constants.ROLE_USER])
    }
}
